<%@ page language="java"  pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	    <title><fmt:message key="appRoleDetail.heading"/></title>
	 	<link href="${ctxPath}/css/style/Tooltip.css" type=text/css rel=stylesheet />
		<SCRIPT src="${ctxPath}/css/style/superValidator.js" type=text/javascript></SCRIPT>
		<SCRIPT type=text/javascript>
		$(document).ready(function(){
			setEmptyCheck("checkRoleName:checkRoleDesc");
		});
	</SCRIPT>
  </head>
  <body>
 		
    <ul>
          <li class="titleonly">
          <img src="${ctxPath}/css/style/base/image/dot.gif" width="15" height="16" class="dot" />&gt;&gt;添加角色功能<a href="javascript:history.back()"><img src="${ctxPath}/css/style/base/image/backtrack.gif" width="14" height="14" align="absmiddle" class="backtrack"/>返回</a>
</li>
        </ul>
        <ul>
<div id="tj" >
	<form:form method="post" id="appRole" commandName="appRole" action="editAppRole.do">	
		<form:hidden path="roleId"/>
		<div id="check_top">
			<div id="title_c"><li>添加角色--功能信息${appRole}</li></div>
		    <div id="content_c">
		    <li class="w50">角色名称：<input name="roleName" value="${appRole.roleName}" type="text" class="inputbox120" id=checkRoleName size=30 check="2" tip="不能为空"  /></li>
		    <li class="w10"></li>
		    <li class="w40"></li>
		      
		    <li class="w100">角色描述：<textarea name="roleDesc"  cols="80" rows="3" id=checkRoleDesc size=30 check="2" tip="不能为空" >${appRole.roleDesc}</textarea></li>
			<c:if test="${appRole.roleId!=1}">
		    <li class="w50">状&nbsp;&nbsp;&nbsp;&nbsp;态&nbsp;&nbsp;：
		    
		    <select name="status" id="status">
		      <option value="0" <c:if test="${appRole.status==0}">selected</c:if>><fmt:message key='common.status0'/></option>
		      <option value="1" <c:if test="${appRole.status==1}">selected</c:if>><fmt:message key='common.status1'/></option>
		    </select>
			</c:if>
		    </li>
		    <li class="w10"></li>
		    <li class="w40"></li>    
		    <div id="clear"></div>
		    </div>
		</div>
                <div id="button">
                			<input name="submit" type="submit" onclick="bCancel=false" value=" 保存 " style="width:100px; text-align:center; margin-left:100px"/>
							<input name="cancel" type="submit" onclick="javascript:history.back()" value=" 取消 " style="width:100px; text-align:center; margin-left:100px"/>
				</div>
				</form:form>
</div><!--浮层结束-->
    </ul>
  </body>
</html>